package com.hq.shop08goods.controller;

import com.hq.shop08goods.entity.Stock;
import com.hq.shop08goods.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/stock")
public class StockController {

    @Autowired
    private StockService stockService;

    @PostMapping("save")
    public Boolean save(@RequestBody Stock stock) {
        Boolean save = stockService.save(stock);
        return save;
    }
}
